import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
import { Service } from '../../service/entities/service.entity';

@Entity('service_photo')
export class ServicePhoto {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  url: string;

  @ManyToOne(() => Service, (service) => service.photos)
  service: Service;
}
